Going from:
To:
Repositories on GitHub correspond to tracked working directories on your computer.
Cloning downloads a repository from the cloud (GitHub) to your local computer, and links your local copy to the cloud.
When you make changes to a repository, committing your changes saves a snapshot in the version history.
Commit messages record notes on what changes with each update.
Pushing and pulling synchronize changes made on your local computer with changes in the cloud, and vice versa.
Branches allow you to make changes to a repository without modifying the primary source code.
Forks are similar to branches, but copy a whole repository to your personal GitHub account.
When you finish making changes in a branch or fork, opening a pull request allows collaborators to review your changes and add them to the primary version.
[Cut to AJR + RMD working through an example on Zoom?]
Before class, please install:
Any problems, please open an issue: https://github.com/eco-evo-thr-2022/12-github-rmarkdown/issues/new
We’ll link GitHub with RStudio in class, following this tutorial:
Git and RStudio instructions: https://www.ecoevomatics.org/2021/09/14/rstudio_github.html
Happy Git with R: https://happygitwithr.com/
Ten simple rules for taking advantage of GitHub: https://doi.org/10.1371/journal.pcbi.1004947